package com.drool.engine.listener;

import org.kie.api.event.rule.ObjectDeletedEvent;
import org.kie.api.event.rule.ObjectInsertedEvent;
import org.kie.api.event.rule.ObjectUpdatedEvent;
import org.kie.api.event.rule.RuleRuntimeEventListener;

/**
 * @Author: liukun
 * @Description:
 * @Date: 2020/7/1.10:00
 */
public class RuleRuntimeEventListenerImpl implements RuleRuntimeEventListener {
    @Override
    public void objectInserted(ObjectInsertedEvent objectInsertedEvent) {
        System.out.println("触发了RuleRuntimeEventListenerImpl的objectInserted");
    }

    @Override
    public void objectUpdated(ObjectUpdatedEvent objectUpdatedEvent) {
        System.out.println("触发了RuleRuntimeEventListenerImpl的objectUpdated");
    }

    @Override
    public void objectDeleted(ObjectDeletedEvent objectDeletedEvent) {
        System.out.println("触发了RuleRuntimeEventListenerImpl的objectDeleted");
    }
}
